extends BaseBox
class_name GravityBox

# Get the gravity from the project settings to be synced with RigidBody nodes.
var gravity = -ProjectSettings.get_setting("physics/2d/default_gravity")

func _physics_process(delta):
	# Add the gravity.
	velocity.y += gravity * delta
	move_and_slide()
